<?php 
require 'db.php';
if (isset ( $_POST ["masv"] )) {
	$masv = $_POST ['masv'];
	$sql = "DELETE FROM dbo_sinhvien WHERE MaSV=?";
	$stmt = $db->prepare ( $sql );
	$stmt->bindParam ( "1", $masv );
	$stmt->execute ();
	$success=$stmt->rowCount();
	if(!$success){	
		echo "Có lỗi xảy ra vui lòng thử lại sau ";
	}else{
		echo "OK";
		exit;
	}
}
?>